const TokenKey = 'App-Token'
import { REFRESH_TOKEN,ACCESS_TOKEN } from '@/utils/constant'
export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function getRefreshToken() {
  return uni.getStorageSync(REFRESH_TOKEN)
}

export function setRefreshToken(token) {
  return uni.setStorageSync(REFRESH_TOKEN, token)
}

export function removeRefreshToken() {
  return uni.removeStorageSync(REFRESH_TOKEN)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
